package edu.java.lectures.lec04.inheritance;

public class ProbaTriangle {

    public static void main(String[] args) {
//	System.out.println("\n\n----------EquilateralTriangle----------");
//	EquilateralTriangle rawnostranenTr = new EquilateralTriangle(3);
//	System.out.println(rawnostranenTr);
//	System.out.println(rawnostranenTr.calculatePerimeter());
//	System.out.println(rawnostranenTr.calculateSurface());
//
//	System.out.println("\n\n----------IsoscelesTriangle----------");
//	IsoscelesTriangle rawnobedrenTr = new IsoscelesTriangle(2, 3);
//	System.out.println(rawnobedrenTr);
//	System.out.println(rawnobedrenTr.calculatePerimeter());
//	System.out.println(rawnobedrenTr.calculateSurface());
//
//	System.out.println(rawnobedrenTr.getA());
	
	System.out.println("\n\n----------ScaleneTriangle----------");
	ScaleneTriangle raznostranenTr=new ScaleneTriangle(2,3,4);
	System.out.println(raznostranenTr);
	System.out.println(raznostranenTr.calculatePerimeter());
	System.out.println(raznostranenTr.calculateSurface());
	
	System.out.println(raznostranenTr.toString("Overloading in ScaleneTriangle class"));

    }
}
